from django.conf.urls import url
from . import views

# rbac对用户，角色，权限，菜单进行管理
urlpatterns = [


    # 登录
    url(r'^$', views.loginClass.as_view(), name='login'),
    # 退出
    url(r'^$', views.signout.as_view(), name='signout'),
    # # 用户名
    # url(r'^$', views.username.as_view(), name='username'),

    url(r'^modifyPwd/$', views.modifyPwd.as_view(), name='modifyPwd'),

    url(r'^main/$', views.main.as_view(), name='main'),

    # 用户页面
    url(r'^users/$', views.userList, name='userList'),
    url(r'^users_modify/$', views.user_modify, name='user_modify'),
    url(r'^active/$', views.activestatus, name='activestatus'),
    url(r'^inipwd/$', views.inipwd, name='inipwd'),
    # 角色页面
    url(r'^roles/$', views.roleList, name='roleList'),
    url(r'^roles_modify/$', views.roles_modify, name='roles_modify'),





    # # 权限页面
    url(r'^permission/$', views.permissionList, name='permissionList'),
    url(r'^permission_modify/$', views.permission_modify, name='permission_modify'),
]
